
package net.minecraft.src;


public class ItemBlockPixel extends ItemBlock {
	
	        public ItemBlockPixel(int i, Block block) {
	                super(i);
	                setHasSubtypes(true);
	        }

	        public int getMetadata(int par1)
	        {
	        	return par1;
	        }
	        public int getPlacedBlockMetadata(int i) {
	                return i;
	        }
	        
   
	        public String getItemNameIS(ItemStack par1ItemStack)
	        {
	        	String  name = new String();
				switch( par1ItemStack.getItemDamage() )
				{
					case  mod_Pixel.pixelRedId:
						name = mod_Pixel.redPixelName;
						break;
					case  mod_Pixel.pixelBlueId:
						name = mod_Pixel.bluePixelName;					
						break;
					case  mod_Pixel.pixelGreenId:
						name = mod_Pixel.greenPixelName;
						break;
					case  mod_Pixel.pixelYellowId:
						name = mod_Pixel.yellowPixelName;
						break;

				}
				return  getItemName() + "." + name;
			}
	}